package com.toy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @author tystart
 * @create 2022-09-08-9:28
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class UserRole implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id--对应用户id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户权限
     */
    private Integer role;
}
